# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 05_两个装饰器.py
# Time: 18:53

def makeRead(fun):
    def wrapped():
        print("----4----")
        return "<style>" + fun() + "</style>"
    return wrapped

#定义函数：完成包裹数据
def makeBold(fn):
    def wrapped():
        print("----1---")
        return "<b>" + fn() + "</b>"
    return wrapped

#定义函数：完成包裹数据
def makeItalic(fn):
    def wrapped():
        print("----2---")
        return "<i>" + fn() + "</i>"
    return wrapped
@makeRead
@makeBold
@makeItalic
def etest3():
    print("----3---")
    return "hello world-3"

ret = etest3()
print(ret)

